package com.appspot.javametronome.client.model;

import com.allen_sauer.gwt.voices.client.Sound;
import com.allen_sauer.gwt.voices.client.SoundController;

public class Tick {
    
    private static final SoundController soundController = new SoundController();
    private Sound tick;

    public Tick(String url) {
        tick = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG_MP3, url);
    }
    
    public void play() {
        tick.play();
    }
    
}
